#include "home.h"
#include "ui_home.h"

home::home(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::home)
{
    ui->setupUi(this);
 //   QPixmap img_1(":/kk/Home/KK_1.png");
   // background_main->setPixmap(img_1);
 //   background_main->setGeometry(this->rect()); // 填满整个窗口
   // background_main->setScaledContents(true);  // 自动拉伸适配窗口大小
  //  background_main->lower();                  // 将背景设置到最底层

    ui->label_5->setPixmap(QPixmap(":/home/Home/img_1.png"));
}

home::~home()
{
    delete ui;
}
//回家
void home::on_pushButton_3_clicked()
{
    ui->label_5->setPixmap(QPixmap(":/home/Home/gohome1.png"));
}
//起床
void home::on_pushButton_2_clicked()
{
    ui->label_5->setPixmap(QPixmap(":/home/Home/godmon1.png"));
}
//晚安
void home::on_pushButton_clicked()
{

    ui->label_5->setPixmap(QPixmap(":/home/Home/img_1.png"));
}
//出门
void home::on_pushButton_4_clicked()
{

    ui->label_5->setPixmap(QPixmap(":/home/Home/gobk1.png"));
}
